package com.atguigu.webapp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.model.pojo.ProvinceInfo;
import com.atguigu.webapp.service.ProvinceInfoService;
import com.atguigu.webapp.mapper.ProvinceInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author 梅超凡
 * @Date 2024/11/12~21:49
 * @Description 针对表【province_info】的数据库操作Service实现
*/
@Service
@Slf4j
public class ProvinceInfoServiceImpl extends ServiceImpl<ProvinceInfoMapper, ProvinceInfo>
    implements ProvinceInfoService{

    @Autowired
    private ProvinceInfoMapper provinceInfoMapper;
    @Override
    public List<ProvinceInfo> listProvince() {
        List<ProvinceInfo> provinceInfos = super.list();
        log.info("查询结果：{}",provinceInfos);
        return provinceInfos;
    }
}




